package com.wbt.spring.e02.config;


import com.wbt.common.beans.Developer;
import com.wbt.common.beans.User;

import java.util.ArrayList;
import java.util.List;


public class UserData {

    User userOne(){
        User user = new User();
        user.setId("1");
        user.setUserName("李四");
        user.setAge(23);
        user.setWork("架构师A");
        return user;
    }

    User userTow(){
        User user = new User();
        user.setId("2");
        user.setUserName("小明");
        user.setAge(39);
        user.setWork("COE架构师");
        return user;
    }

    User userThree(){
        User user = new User();
        user.setId("3");
        user.setUserName("小米");
        user.setAge(33);
        user.setWork("JAVA工程师");
        return user;
    }

    User developer(){
        Developer user = new Developer();
        user.setId("4");
        user.setUserName("米哈");
        user.setAge(22);
        user.setWork("Test工程师");
        user.setDec("开发者");
        return user;
    }

    public List<User> getUsetList(){
        List<User> list = new ArrayList<User>();
        list.add(userOne());
        list.add(userTow());
        list.add(userThree());
        list.add(developer());
        return list;
    }
}
